extends "../qiye-3/qiye-3.gd"


var baseId = ""
var upText1 = "LuckyE内置冷却-2秒"
var upText2 = "黑色幽灵伤害翻倍"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("<限定>受到致命伤害时，对所有敌人造成[航空*1]的技能伤害，并免疫该伤害", "黑色幽灵")

var skflag4 = true
func onHurtDeath(atkInfo):
	.onHurtDeath(atkInfo)
	if atkInfo.hurtChaDead and skflag4:
		skflag4 = false
		atkInfo.hurtChaDead = false
		for i in getAllChas(1):
			azurHurtChara(i, att.air, sys.HurtType.WEAPON, sys.AtkType.SKILL, "黑色幽灵", false, p4)
var p4 = 1
func _onBattleStart():
	._onBattleStart()
	skflag4 = true

func upgrade():
	.upgrade()
	if upgraded == 1:
		skFlag3 = 3
	if upgraded == 2:
		p4 = 2